import request from '../utils/request';

export default {
    //  获取所有部门
    getAllDepart() {
        return request({
            url: `/department/findAll`,
            method: 'get',
        });
    },
    searchTarget(yearTargetId, type, deptId, level, isAssess) {
        return request({
            url: `/statistics/dept/findByCondition`,
            method: 'get',
            params: {
                yearTargetId, type, deptId, level, isAssess
            }
        })
    }
}